import request from "../api/request";
const getApartment = async () => {
  const res = await request({
    url: "/apartment",
    method: "get",
  })
  return res.data;
};
const getUsers = async () => {
  const res = await request({
    url: "/userData",
    method: "get",
  })
  return res.data;
};
const getMenuRight = async () => {
  const res = await request({
    url: '/sysMenu',
    method: "get"
  })
  return res.data;
}
const getSysRole = async () => {
  const res = await request({
    url: '/sysRole',
    method: 'get'
  })
  return res.data;
}
const SystemService = {
  getApartment,
  getUsers,
  getMenuRight,
  getSysRole
};
export default SystemService;